package com.itheima.a07threadmethod4;

public class ThreadDemo1 {
    public static void main(String[] args) {
        //了解礼让线程

        //创建线程对象
        MyThread1 t1 = new MyThread1();
        MyThread1 t2 = new MyThread1();

        //设置名字
        t1.setName("大哥");
        t2.setName("小弟");

        //启动线程
        t1.start();
        t2.start();
    }
}
